package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 */
public class Test {

    public static void main1(String[] args) {
        Login login1 = new Login("小贺","123456");
        try{
            login1.loginInfo("小贺","123456");
        }catch (NameException e){
            e.printStackTrace();
        }catch (PasswordException e){
            e.printStackTrace();
        }finally {
            System.out.println("finally的代码");
        }
    }
}
